package lib

import (
	"honeyweb/log"
	"os"
	"os/signal"
	"syscall"
)

func WaitSigalStop() {
	sigs := make(chan os.Signal, 1)
	signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
	for {
		select {
		case sig := <- sigs:
			log.S().Debug("recv", sig)
			return
		}
	}
}
